import { createApp } from 'vue'
import App from './App.vue'
import {createPinia} from "pinia";
import {router} from "./router";
import piniaPluginPersist from 'pinia-plugin-persist'
import '@arco-design/web-vue/dist/arco.css';
import Tmap from '@map-component/vue-tmap';
import '../src/assets/icon/iconfont.css'
// 动画 animate.css
import animate from "animate.css";
// 额外引入图标库
import ArcoVueIcon from '@arco-design/web-vue/es/icon';
import ArcoVue from '@arco-design/web-vue';


const pinia = createPinia()
pinia.use(piniaPluginPersist)
const app = createApp(App)
// @ts-ignore
app.use(animate)
// 注入状态机pinia
app.use(pinia)
// 注入路由
app.use(router)
app.use(Tmap)
app.use(ArcoVue);
app.use(ArcoVueIcon)
app.mount('#app')
